<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title>抄单资料确认</title>
</head>
<body>
<div class="contant">
<div class="row">
        <div class="top">内勤部>抄单资料确认</div>
        <div class="content applylist">
            <div class="box">
                <h1>抄单资料确认</h1>
                <div class="list-block">
                    <div class="row">
                        <table class="list">
                           <tr>
                                <th>编号</th>
                                 <th>申请人</th>
                                 <th>身份证号</th>
                                 <th>手机号</th>
                                 <th>业务部门</th>
                                 <th>申请时间</th>
                                 <th>状态</th>
                                 <th>进入当前状态时间</th>
                                 <th>贷款银行</th>
                                 <th>操作</th>
                            </tr>
                            <volist name='list' id='user'>
                            <tr>
                                <td>{$user.entry_no}</td>
                                    <td>{$user.user_name}</td>
                                    <td>{$user.identity_no}</td>
                                    <td>{$user.telephone}</td>
                                    <td>{$user.department_name}</td>
                                    <td>{$user.create_time|date='Y-m-d H:i:s', ###}</td>
                                    <td>抄单资料待确认</td>
                                    <td>{$user.update_time|date='Y-m-d H:i:s', ###}</td>
                                    <td>{$user.bank_short_name}</td>
                                <td>
                                <if condition='$user.data_status eq 99'>
                                   <a class="check" data-id='{$user.id}' data-status='{$user.data_status}'>审核未通过</a>
                                 <else/>
                                  <a class="check" data-id='{$user.id}' data-status='{$user.data_status}'>审核</a>
                                 </if>
                                 </td>
                            </tr>
                          </volist>
                        </table>
                    </div>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>
    <script type="text/javascript">
        $('.check').click(function(){
         id           = $(this).data('id');
         data_status  = $(this).data('status');
         check_status = {$user.check_status|default=0};
         $.post('{:U("ChaoDan/setData_check")}',{id:id,data_status:data_status,type:1},function(data){
            if(data.status==1){
              //  alert(data.info);
               location.href = '{:U("ChaoDan/Confirm_check")}?user_id/'+id;
            }else if(data.status==0){
               alert(data.info);
               location.reload();
            }else{
                alert(data);
                location.href='{:U("Check/not_index")}/check_status/'+check_status;
               // location.href='{:U("Index/not_check")}';
            }
         });
      });
    </script>
</body>
</html>